import { ref } from 'vue'
export function useWindowScroll () {
  const y = ref(0)
  window.addEventListener('scroll', () => {
    y.value = document.documentElement.scrollTop
  })
  return {
    y
  }
}
